using NL.ControllerInteface;
using UnityEngine;
namespace NL.Advanced
{
    public partial class CameraBase
    {
        private Follow _follow;
        private float _restoredFollowSpeedAround;
        private float _restoredFollowSpeedPush;

        [Header("相机跟随对象")]
        public Transform FollowTarget;
        public Vector3 FollowOffset = Vector3.zero;

        bool FollowNeed => FollowTarget != null;
        public void FollowBegin(Transform who, Vector3 offset)
        {
            LOG.Add($"[CameraBase.FollowBegin]:({who})............");
            FollowTarget = who;
            FollowOffset = offset;

        }

        public void FollowClean()
        {

            LOG.Add($"[CameraBase.FollowEnd]:...............");

            FollowTarget = null;
            FollowOffset = Vector3.zero;

        }
    }

}
